package com.wing.robot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.robot.model.entity.RobotTaskDetail;
import com.wing.robot.model.request.RobotTaskDetailForm;
import com.wing.robot.model.request.RobotTaskForm;
import com.wing.robot.model.response.RobotTaskDetailVO;

import java.util.List;
import java.util.Map;

/**
 * 复合机器人任务详细记录-Service
 *
 * @author
 */
public interface RobotTaskDetailService extends IService<RobotTaskDetail> {

    /**
     * 添加
     *
     * @param robotTaskDetailForm
     * @return
     */
    int add(RobotTaskDetailForm robotTaskDetailForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<RobotTaskDetailVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<RobotTaskDetailVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    RobotTaskDetailVO get4appById(Long id);

    String  getUniqueCode();

    JsonResult doTask(RobotTaskForm robotTaskForm);
}
